<%@page language="java" pageEncoding="UTF-8" %>

<%@include file="/template/common/include/constant.jsp" %>

<%@include file="/template/top.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath}/template/js/gftuserfunc.js"></script>
<body>
<form method="post" action="${path}/ta/ol.x">
    <input type="hidden" name="op" value="list"/>

    <div class="main_search">操作员:
        <input type="text" name="f(useName)" value="${fmap.useName}"/>
        内容:
        <input type="text" name="f(doc)" value="${fmap.doc}"/>

        关联用户ID:
        <input type="text" name="f(userId)" value="${fmap.userId}"/>
        <input name="Submit" type="submit" id="search_but" class="search" value="搜索"/>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input name="Submit" type="button"
               onClick="openPrintOL()"
               class="btn_Submit" value="添加日志"/>
        <script language="javascript">
            function openPrintOL() {
                window.open('${path}/ta/ol.x?op=add', '', 'Width=500,Height=500');
            }
            function thisOpener(){
                document.getElementById("search_but").click();
            }
        </script>
    </div>
</form>
<br>

<form method="post" action="${path}/ta/ol.x" id="listFrm" d_op="list">
    <input type="hidden" id="id_op" name="op" value="list"/>
    ${sys_searchparemeter}
    <div class="list_div">
        <table width="100%">
            <tr>
                <th width="10"><input type="checkbox" onClick="checkByName('ids',this.checked);"/></th>
                <th width="100">操作员</th>
              <th>内容</th>
              <th width="70">查看</th>
              <th width="130">添加时间</th>
                <th width="30">附件</th>
            </tr>
            <c:forEach items="${pageBean.retList}" var="row">
                <tr>
                    <td>
                        <input type="checkbox" name="ids" value="${row.id}"/>
                    </td>
                    <td>&nbsp;${row.useName}</td>
                    <td>&nbsp;${row.doc}</td>
                    <td>&nbsp;
                    <c:if test='${row.userId != null}'>
                    <a href="${path}/ta/userinfo.x?op=list&f(id)=${row.userId}" target="_blank">${row.userId}</a>
                    </c:if>
                    </td>
                    <td>&nbsp;${row.createDate}</td>
                    <td align="center">
                        <c:if test='${row.upFile != null}'>
                            <a href="${path}/upload/${row.upFile}" target="_blank"> 下载</a>
                        </c:if>


                        &nbsp;</td>
                </tr>
            </c:forEach>
        </table>
</div>
    <div class="main_page">
        <%@include file="/template/common/include/pagefooter.jsp" %>
    </div>
</form>
</body>